package com.changgou.user.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * parent
 *
 * @Project: changgou-
 * @Package: com.changgou.user.controller
 * @Time: 2019/8/21 14:52 星期三
 * @User: Super Note
 **/
@Controller
@RequestMapping(value = "/userpage")
public class UserPageRedirect {
    /***
     * 跳转到地址列表页面
     * @return
     */
    @RequestMapping(value = "/address")
    public String toAddressList() {
        return "addressList";
    }

    /***
     * 跳转到未登录状态访问修改密码页面
     * @return
     */
    @RequestMapping(value = "/nopassword")
    public String toEditPasswordByPhone() {
        return "findPassword";
    }

    /***
     * 跳转到已登录状态修改密码
     * @return
     */
    @RequestMapping(value = "/editPassword")
    public String toEditPassword() {
        return "editPassword";
    }

    @RequestMapping(value = "/userInfo")
    public String toUserInfo() {
        return "userInfo";
    }
}
